import request from '@/utils/request'

// 查询MES测试列表
export function listMestest(query) {
  return request({
    url: '/mes/mes/mestest/list',
    method: 'get',
    params: query
  })
}

// 查询MES测试详细
export function getMestest(id) {
  return request({
    url: '/mes/mes/mestest/' + id,
    method: 'get'
  })
}

// 新增MES测试
export function addMestest(data) {
  return request({
    url: '/mes/mes/mestest',
    method: 'post',
    data: data
  })
}

// 修改MES测试
export function updateMestest(data) {
  return request({
    url: '/mes/mes/mestest',
    method: 'put',
    data: data
  })
}

// 删除MES测试
export function delMestest(id) {
  return request({
    url: '/mes/mes/mestest/' + id,
    method: 'delete'
  })
}
